package com.dayaokeji.server_api.api;

import com.dayaokeji.server_api.ServerResponse;
import com.dayaokeji.server_api.domain.Sms;

import retrofit2.Call;
import retrofit2.http.Body;
import retrofit2.http.POST;

// Created by Zeno on 2018/5/18
// version 1.0
// Copyright (C) 2018 -- 2020 ALL Right
public interface SmsApi {

    /**
     * 发送验证码
     * @param sendSms
     * @return
     */
    @POST("course/sms/send")
    Call<ServerResponse<Void>> send(@Body Sms sendSms);

    /**
     * 验证短信验证码
     * @param sms
     * @return
     */
    @POST("course/sms/validate")
    Call<ServerResponse<Boolean>> validate(@Body Sms sms);

}
